<?php
$conn = mysqli_connect ( "localhost", "root", "root" ) or die ( "数据库连接失败" . mysql_error () );
mysqli_select_db ( $conn, "db_shop" ) or die ( "数据库连接失败" . mysql_error () );
mysqli_query ( $conn, "set character set utf-8" );
mysqli_query ( $conn, "set names utf-8" );
?>
